import router from './router'
import { Route, NavigationGuardNext } from 'vue-router'
import { setDocumentTitle } from '@/utils'
const defaultConfig = require('@/config.ts')

router.beforeEach((to: Route, from: Route, next: NavigationGuardNext) => {
  setDocumentTitle(to.meta.title || defaultConfig.title)
  next()
})
